import request from '../networks/request';
// 获取所有用户发布的话题信息
// export const getTopicTetails = (data) => {
//     return request({
//         url: '/topic/findall',
//         method: 'get', 
//         params:data , 
//     });
// };
// 推荐话题
export const getTopicRecommend = (data) => {
    return request({
        url: '/recommend/topic',
        method: 'get', 
        params:data , 
    });
};

//修改点赞状态
export const topiclike_num = (data) => {
    return request({
        url: '/praise/updatelike_num',
        method: 'put', 
        data:data , 
    });
};
//修改收藏状态
export const topiccollent_num = (data) => {
    return request({
        url: '/topic/updatecollect_num',
        method: 'put', 
        data:data , 
    });
};
//获取点赞的状态
export const getlikepraise = (data) => {
    return request({
        url: '/praise/getpraise',
        method: 'post', 
        data:data , 
    });
};